﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class UnityEngineRenderingRenderTargetBlendStateWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(UnityEngine.Rendering.RenderTargetBlendState);
			Utils.BeginObjectRegister(type, L, translator, 1, 2, 7, 7);
			Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta);
            
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "writeMask", _g_get_writeMask);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "sourceColorBlendMode", _g_get_sourceColorBlendMode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "destinationColorBlendMode", _g_get_destinationColorBlendMode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "sourceAlphaBlendMode", _g_get_sourceAlphaBlendMode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "destinationAlphaBlendMode", _g_get_destinationAlphaBlendMode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorBlendOperation", _g_get_colorBlendOperation);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "alphaBlendOperation", _g_get_alphaBlendOperation);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "writeMask", _s_set_writeMask);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "sourceColorBlendMode", _s_set_sourceColorBlendMode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "destinationColorBlendMode", _s_set_destinationColorBlendMode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "sourceAlphaBlendMode", _s_set_sourceAlphaBlendMode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "destinationAlphaBlendMode", _s_set_destinationAlphaBlendMode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorBlendOperation", _s_set_colorBlendOperation);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "alphaBlendOperation", _s_set_alphaBlendOperation);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0);
			
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultValue", _g_get_defaultValue);
            
			
			
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 8 && translator.Assignable<UnityEngine.Rendering.ColorWriteMask>(L, 2) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 3) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 4) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 5) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 6) && translator.Assignable<UnityEngine.Rendering.BlendOp>(L, 7) && translator.Assignable<UnityEngine.Rendering.BlendOp>(L, 8))
				{
					UnityEngine.Rendering.ColorWriteMask _writeMask;translator.Get(L, 2, out _writeMask);
					UnityEngine.Rendering.BlendMode _sourceColorBlendMode;translator.Get(L, 3, out _sourceColorBlendMode);
					UnityEngine.Rendering.BlendMode _destinationColorBlendMode;translator.Get(L, 4, out _destinationColorBlendMode);
					UnityEngine.Rendering.BlendMode _sourceAlphaBlendMode;translator.Get(L, 5, out _sourceAlphaBlendMode);
					UnityEngine.Rendering.BlendMode _destinationAlphaBlendMode;translator.Get(L, 6, out _destinationAlphaBlendMode);
					UnityEngine.Rendering.BlendOp _colorBlendOperation;translator.Get(L, 7, out _colorBlendOperation);
					UnityEngine.Rendering.BlendOp _alphaBlendOperation;translator.Get(L, 8, out _alphaBlendOperation);
					
					var gen_ret = new UnityEngine.Rendering.RenderTargetBlendState(_writeMask, _sourceColorBlendMode, _destinationColorBlendMode, _sourceAlphaBlendMode, _destinationAlphaBlendMode, _colorBlendOperation, _alphaBlendOperation);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 7 && translator.Assignable<UnityEngine.Rendering.ColorWriteMask>(L, 2) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 3) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 4) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 5) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 6) && translator.Assignable<UnityEngine.Rendering.BlendOp>(L, 7))
				{
					UnityEngine.Rendering.ColorWriteMask _writeMask;translator.Get(L, 2, out _writeMask);
					UnityEngine.Rendering.BlendMode _sourceColorBlendMode;translator.Get(L, 3, out _sourceColorBlendMode);
					UnityEngine.Rendering.BlendMode _destinationColorBlendMode;translator.Get(L, 4, out _destinationColorBlendMode);
					UnityEngine.Rendering.BlendMode _sourceAlphaBlendMode;translator.Get(L, 5, out _sourceAlphaBlendMode);
					UnityEngine.Rendering.BlendMode _destinationAlphaBlendMode;translator.Get(L, 6, out _destinationAlphaBlendMode);
					UnityEngine.Rendering.BlendOp _colorBlendOperation;translator.Get(L, 7, out _colorBlendOperation);
					
					var gen_ret = new UnityEngine.Rendering.RenderTargetBlendState(_writeMask, _sourceColorBlendMode, _destinationColorBlendMode, _sourceAlphaBlendMode, _destinationAlphaBlendMode, _colorBlendOperation);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 6 && translator.Assignable<UnityEngine.Rendering.ColorWriteMask>(L, 2) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 3) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 4) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 5) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 6))
				{
					UnityEngine.Rendering.ColorWriteMask _writeMask;translator.Get(L, 2, out _writeMask);
					UnityEngine.Rendering.BlendMode _sourceColorBlendMode;translator.Get(L, 3, out _sourceColorBlendMode);
					UnityEngine.Rendering.BlendMode _destinationColorBlendMode;translator.Get(L, 4, out _destinationColorBlendMode);
					UnityEngine.Rendering.BlendMode _sourceAlphaBlendMode;translator.Get(L, 5, out _sourceAlphaBlendMode);
					UnityEngine.Rendering.BlendMode _destinationAlphaBlendMode;translator.Get(L, 6, out _destinationAlphaBlendMode);
					
					var gen_ret = new UnityEngine.Rendering.RenderTargetBlendState(_writeMask, _sourceColorBlendMode, _destinationColorBlendMode, _sourceAlphaBlendMode, _destinationAlphaBlendMode);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable<UnityEngine.Rendering.ColorWriteMask>(L, 2) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 3) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 4) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 5))
				{
					UnityEngine.Rendering.ColorWriteMask _writeMask;translator.Get(L, 2, out _writeMask);
					UnityEngine.Rendering.BlendMode _sourceColorBlendMode;translator.Get(L, 3, out _sourceColorBlendMode);
					UnityEngine.Rendering.BlendMode _destinationColorBlendMode;translator.Get(L, 4, out _destinationColorBlendMode);
					UnityEngine.Rendering.BlendMode _sourceAlphaBlendMode;translator.Get(L, 5, out _sourceAlphaBlendMode);
					
					var gen_ret = new UnityEngine.Rendering.RenderTargetBlendState(_writeMask, _sourceColorBlendMode, _destinationColorBlendMode, _sourceAlphaBlendMode);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable<UnityEngine.Rendering.ColorWriteMask>(L, 2) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 3) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 4))
				{
					UnityEngine.Rendering.ColorWriteMask _writeMask;translator.Get(L, 2, out _writeMask);
					UnityEngine.Rendering.BlendMode _sourceColorBlendMode;translator.Get(L, 3, out _sourceColorBlendMode);
					UnityEngine.Rendering.BlendMode _destinationColorBlendMode;translator.Get(L, 4, out _destinationColorBlendMode);
					
					var gen_ret = new UnityEngine.Rendering.RenderTargetBlendState(_writeMask, _sourceColorBlendMode, _destinationColorBlendMode);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<UnityEngine.Rendering.ColorWriteMask>(L, 2) && translator.Assignable<UnityEngine.Rendering.BlendMode>(L, 3))
				{
					UnityEngine.Rendering.ColorWriteMask _writeMask;translator.Get(L, 2, out _writeMask);
					UnityEngine.Rendering.BlendMode _sourceColorBlendMode;translator.Get(L, 3, out _sourceColorBlendMode);
					
					var gen_ret = new UnityEngine.Rendering.RenderTargetBlendState(_writeMask, _sourceColorBlendMode);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<UnityEngine.Rendering.ColorWriteMask>(L, 2))
				{
					UnityEngine.Rendering.ColorWriteMask _writeMask;translator.Get(L, 2, out _writeMask);
					
					var gen_ret = new UnityEngine.Rendering.RenderTargetBlendState(_writeMask);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new UnityEngine.Rendering.RenderTargetBlendState();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
				if (LuaAPI.lua_gettop(L) == 1)
				{
				    translator.Push(L, default(UnityEngine.Rendering.RenderTargetBlendState));
			        return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.RenderTargetBlendState constructor!");
            
        }
        
		
        
		
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __EqMeta(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
			
				if (translator.Assignable<UnityEngine.Rendering.RenderTargetBlendState>(L, 1) && translator.Assignable<UnityEngine.Rendering.RenderTargetBlendState>(L, 2))
				{
					UnityEngine.Rendering.RenderTargetBlendState leftside;translator.Get(L, 1, out leftside);
					UnityEngine.Rendering.RenderTargetBlendState rightside;translator.Get(L, 2, out rightside);
					
					LuaAPI.lua_pushboolean(L, leftside == rightside);
					
					return 1;
				}
            
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Rendering.RenderTargetBlendState!");
            
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Equals(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<UnityEngine.Rendering.RenderTargetBlendState>(L, 2)) 
                {
                    UnityEngine.Rendering.RenderTargetBlendState _other;translator.Get(L, 2, out _other);
                    
                        var gen_ret = gen_to_be_invoked.Equals( _other );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& translator.Assignable<object>(L, 2)) 
                {
                    object _obj = translator.GetObject(L, 2, typeof(object));
                    
                        var gen_ret = gen_to_be_invoked.Equals( _obj );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.RenderTargetBlendState.Equals!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetHashCode(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetHashCode(  );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_defaultValue(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, UnityEngine.Rendering.RenderTargetBlendState.defaultValue);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_writeMask(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingColorWriteMask(L, gen_to_be_invoked.writeMask);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_sourceColorBlendMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingBlendMode(L, gen_to_be_invoked.sourceColorBlendMode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_destinationColorBlendMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingBlendMode(L, gen_to_be_invoked.destinationColorBlendMode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_sourceAlphaBlendMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingBlendMode(L, gen_to_be_invoked.sourceAlphaBlendMode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_destinationAlphaBlendMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingBlendMode(L, gen_to_be_invoked.destinationAlphaBlendMode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_colorBlendOperation(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingBlendOp(L, gen_to_be_invoked.colorBlendOperation);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_alphaBlendOperation(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingBlendOp(L, gen_to_be_invoked.alphaBlendOperation);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_writeMask(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.ColorWriteMask gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.writeMask = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_sourceColorBlendMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.BlendMode gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.sourceColorBlendMode = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_destinationColorBlendMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.BlendMode gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.destinationColorBlendMode = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_sourceAlphaBlendMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.BlendMode gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.sourceAlphaBlendMode = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_destinationAlphaBlendMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.BlendMode gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.destinationAlphaBlendMode = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_colorBlendOperation(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.BlendOp gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.colorBlendOperation = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_alphaBlendOperation(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.RenderTargetBlendState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.BlendOp gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.alphaBlendOperation = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
		
		
		
		
    }
}
